<template>
  <div class="item-navbar">
    <!-- 次级页面导航item-navbar -->
    <van-nav-bar
      :title="title"
      fixed
      placeholder
      z-index="99"
      left-arrow
      @click-left="onClickLeft"
    >
    </van-nav-bar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      // 获取页面标题
      title: this.$route.meta.title,
    };
  },
  methods: {
    // 点击返回事件
    onClickLeft() {
      this.$router.go(-1);
    },
  },
};
</script>

<style scoped></style>
